﻿// Container for the ring class.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Orchard.Model
{
    public enum TreeTypeEnum
    {
        ProductivityTree,
        ExerciseTree,
        LearningTree
    }

    public class Tree
    {
        List<Ring> rings;
        TreeTypeEnum treeType;
        bool newTree;

        // Properties
        public List<Ring> Rings
        {
            get { return rings; }
        }
        public TreeTypeEnum TreeType
        {
            get { return treeType; }
        }

        // Constructor
        public Tree(TreeTypeEnum treeType)
        {
            newTree = true;
            rings = new List<Ring>();
            this.treeType = treeType;
        }

        public bool getNewTree()
        {
            return newTree;
        }

        public void addRing(Ring ring)
        {
            //add a ring
            newTree = false;
            rings.Add(ring);
        }
    }
}
